package com.sy.service.Impl;

import com.sy.entity.Media;
import com.sy.mapper.MediaMapper;
import com.sy.service.MediaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author King
 * @Date 2021/1/17 16:34
 */
@Service
public class MediaServiceImpl implements MediaService {

    @Autowired
    private MediaMapper mapper;

    @Override
    public List<Media> selectVideoSix() {
        return mapper.selectVideoSix();
    }

    @Override
    public Media selectById(Integer id) {
        return mapper.selectById(id);
    }

    @Override
    public List<Media> getSearch(String vName) {
        return mapper.getSearch(vName);
    }
}
